import request from '@/utils/request'

export function getRoleList(data){
    return request({
        url:'/rolelist',
        method:'get',
        params:data
    });
}

export function editRole(data){
    return request({
       url:'/editrole',
       method:'post',
       data:qs.stringify(data)
    });
}

export function getRoleInfo(data){
    return request({
       url:'/roleinfo',
       method:'get',
       params:data
    });
}

export function delRole(data){
   return request({
      url:'/delrole',
      method:'get',
      params:data
   });
}

export function getAllRoleList(data){
   return request({
      url:'/allrolelist',
      method:'get',
      params:data
   });
}
